<template>
	<view class="index">
		<button type="default" @click="showPCA">打开</button>
		<pcaPicker ref="pcaPicker" @confirm="getPCA"></pcaPicker>
	</view>
</template>

<script>
	import pcaPicker from '@/components/pcaPicker/pcaPicker.vue'
	export default {		
		components: {		
			pcaPicker
		},
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
			showPCA(e){
				this.$refs.pcaPicker.show();
			},
			getPCA(e) {
				console.log(e);
			}
		}

	}
</script>

<style>
	button{
		margin-top:200rpx;
		width: 80%;
	}
</style>
